<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/9 0009
  Time: 12:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tagPage.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>修改排产订单</title>
    <meta name="keywords" content="中文"/>
    <meta name="description" content="下载"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <!-- basic styles -->

    <link href="${baseurl}statics/assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/font-awesome.min.css"/>

    <!--[if IE 7]>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->

    <!-- page specific plugin styles -->

    <link rel="stylesheet" href="${baseurl}statics/assets/css/jquery-ui-1.10.3.custom.min.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/chosen.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/datepicker.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/bootstrap-timepicker.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/daterangepicker.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/colorpicker.css"/>

    <!-- fonts -->

    <link rel="stylesheet" href="${baseurl}statics/assets/css/fonts.css"/>

    <!-- ace styles -->

    <link rel="stylesheet" href="${baseurl}statics/assets/css/ace.min.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/ace-rtl.min.css"/>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/ace-skins.min.css"/>

    <!--[if lte IE 8]>
    <link rel="stylesheet" href="${baseurl}statics/assets/css/ace-ie.min.css"/>
    <![endif]-->

    <!-- inline styles related to this page -->

    <!-- ace settings handler -->

    <script src="${baseurl}statics/assets/js/ace-extra.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

    <!--[if lt IE 9]>
    <script src="${baseurl}statics/assets/js/html5shiv.js"></script>
    <script src="${baseurl}statics/assets/js/respond.min.js"></script>
    <![endif]-->

    <script type="text/javascript">
        function submitYZ() {
            if ($("#form-field-1").val() == null || $("#form-field-1").val() == "") {
                alert("管理员名称不能为空");
                return false;
            }
            //验证是否选中角色
            if($("#form-field-2").val() == 0){
                alert("请选择角色");
                return false;
            }
            if($("#form-field-2").val() == 1){
                alert("超级管理员只能有一个,不能添加哟");
                return false;
            }
            return true;
        }

    </script>

</head>

<body>
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#">订单管理</a>
        </li>
        <li>
            <a href="${baseurl}productionOrder/findAllProductionOrder?roleId=1&adminId=1">排产订单列表</a>
        </li>
        <li class="active">修改排产订单</li>
    </ul><!-- .breadcrumb -->
</div>


    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->

            <form class="form-horizontal" role="form" method="post" action="${baseurl}productionOrder/Update"
                  onsubmit="return submitYZ();">
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"><span style="color: red">*</span>计划交期</label>

                    <div class="col-sm-9">
                        <input type="text" id="form-field-1" name="planTime" value="<fmt:formatDate value="${productionOrder.planTime}"
                                                        pattern="YYYY/M/d"></fmt:formatDate>" placeholder="请输入计划交期"
                               class="col-xs-10 col-sm-5"/>
                        <input type="hidden" name="id" value="${productionOrder.id}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"><span style="color: red">*</span>尺码修改</label>

                    <div class="col-sm-9">
                        <table  class="table table-striped table-bordered table-hover"
                                style="margin-top: 20px;vertical-align:center;" >
                            <tr style="line-height: 200px">
                                <th>
                                    <c:if test="${productionOrder.sizeType==1}">标准码</c:if>
                                    <c:if test="${productionOrder.sizeType==2}">欧码</c:if>
                                    <c:if test="${productionOrder.sizeType==3}">美码</c:if>
                                </th>
                                <%--  <td class="cr-999">数量</td>--%>
                                <c:forEach items="${productionOrder.productionOrderInfoList}" var="productionOrderInfo">
                                    <th>${productionOrderInfo.size}</th>
                                </c:forEach>
                            </tr>
                            <tr style="line-height: 200px">
                                <td >数量</td>
                                <c:forEach items="${productionOrder.productionOrderInfoList}" var="productionOrderInfo">
                                    <td> <input type="text" id="form-field-2" name="number" value="${productionOrderInfo.number}" placeholder="请输入计划交期"
                                                class="col-xs-10 col-sm-5"/>
                                    </td>
                                </c:forEach>
                            </tr>
                            <tr style="line-height: 200px">
                                <td >总数量</td>
                                <c:forEach items="${productionOrder.contractList}" var="contract">
                                    <td>
                                            ${contract.number}
                                    </td>
                                </c:forEach>
                            </tr>
                        </table>

                    </div>
                </div>



                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            修改
                        </button>

                        &nbsp; &nbsp; &nbsp;
                        <button class="btn btn-return" type="button">
                            <i class="icon-undo bigger-110"></i>
                            返回
                        </button>

                    </div>
                </div>
            </form>


        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->

<!-- basic scripts -->
<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='${baseurl}statics/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='${baseurl}statics/assets/js/jquery-1.10.2.min.js'>" + "<" + "/script>");
</script>
<![endif]-->

<script type="text/javascript">
    if ("ontouchend" in document) document.write("<script src='${baseurl}statics/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="${baseurl}statics/assets/js/bootstrap.min.js"></script>
<script src="${baseurl}statics/assets/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
<script src="${baseurl}statics/assets/js/excanvas.min.js"></script>
<![endif]-->

<script src="${baseurl}statics/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="${baseurl}statics/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="${baseurl}statics/assets/js/chosen.jquery.min.js"></script>
<script src="${baseurl}statics/assets/js/fuelux/fuelux.spinner.min.js"></script>
<script src="${baseurl}statics/assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="${baseurl}statics/assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="${baseurl}statics/assets/js/date-time/moment.min.js"></script>
<script src="${baseurl}statics/assets/js/date-time/daterangepicker.min.js"></script>
<script src="${baseurl}statics/assets/js/bootstrap-colorpicker.min.js"></script>
<script src="${baseurl}statics/assets/js/jquery.knob.min.js"></script>
<script src="${baseurl}statics/assets/js/jquery.autosize.min.js"></script>
<script src="${baseurl}statics/assets/js/jquery.inputlimiter.1.3.1.min.js"></script>
<script src="${baseurl}statics/assets/js/jquery.maskedinput.min.js"></script>
<script src="${baseurl}statics/assets/js/bootstrap-tag.min.js"></script>

<!-- ace scripts -->

<script src="${baseurl}statics/assets/js/ace-elements.min.js"></script>
<script src="${baseurl}statics/assets/js/ace.min.js"></script>

<!-- inline scripts related to this page -->

<script type="text/javascript">
    $(".btn-return").click(function () {
        window.location.href="${baseurl}productionOrder/findAllProductionOrder";
    });
</script>

</body>
</html>
